<template>
  <div id="app">
    <alert ref="alert"></alert>
    <router-view @alert="alert"></router-view>
  </div>
</template>

<script>
  export default {
    name: "App",
    methods: {
      alert(message) {
        this.$refs.alert.show(message)
      }
    }
  }
</script>
